import request from 'utils/http'

/**
 * 用户登录
*/
export const userLogin = (data) => {
  return request({
    url: `/qia-cloud-user/auth/admin/login`,
    method: 'post',
    data
  })
}
/**
 *
 * @returns 查询角色权限
 */
 export function getRoleById(id) {
  return request({
    url: `/qia-cloud-user/permission/queryByRoleId/${id}`,
    method: 'get'
  })
}


/**
 * 超级管理员：查询所有角色
*/
export function getUserList(data, params) {
  return request({
    url: `/qia-cloud-user/user/list`,
    method: 'post',
    data,
    params
  })
}
/**
 * 留言
*/
export function setRemark(data) {
  return request({
    url: `/qia-cloud-middle/work-flow/saveHistory`,
    method: 'put',
    data
  })
}
/**
 * 查询历史记录
*/
export function getHistoryRemark(data) {
  return request({
    url: `/qia-cloud-middle/work-flow/queryHistory`,
    method: 'post',
    data
  })
}


/**
 *@param {*} data
 * @returns 音频上下架
 */
 export const updateUpperLowerBatchSong = (data) => {
  return request({
    url: `/qia-cloud-middle/sg-song/updateUpperLowerBatch`,
    method: 'PUT',
    data
  })
}
/**
 *@param {*} data
 * @returns 视频上下架
 */
export const updateUpperLowerBatchVideo = (data) => {
  return request({
    url: `/qia-cloud-middle/ve-video/updateUpperLowerBatch`,
    method: 'PUT',
    data
  })
}
/**
 *@param {*} data
 * @returns 专辑上下架
 */
export const updateUpperLowerBatchVideoAlbum = (data) => {
  return request({
    url: `/qia-cloud-middle/av-album-video/updateUpperLowerBatch`,
    method: 'PUT',
    data
  })
}
/**
 *@param {*} data
 * @returns 泛读上下架
 */
export const updateUpperLowerBatchBook = (data) => {
  return request({
    url: `/qia-cloud-middle/bk-book/updateUpperLowerBatch`,
    method: 'PUT',
    data
  })
}
/**
 *@param {*} data
 * @returns 精读上下架
 */
export const updateUpperLowerBatchBookInten = (data) => {
  return request({
    url: `/qia-cloud-middle/ir-book-word/updateUpperLowerBatch`,
    method: 'PUT',
    data
  })
}
/**
 *@param {*} data
 * @returns 学习视频上下架
 */
 export const updateUpperLowerBatchLeVideo = (data) => {
  return request({
    url: `/qia-cloud-middle/le-video/updateUpperLowerBatch`,
    method: 'put',
    data
  })
}
/**
 *@param {*} data
 * @returns 主题包上下架
 */
export const updateUpperLowerBatchTheme = (data) => {
  return request({
    url: `/qia-cloud-middle/ls-lesson/updateUpperLowerBatch`,
    method: 'PUT',
    data
  })
}

// 单词

/**
 *@param {*} data
 * @returns 查询引用列表
 */
 export const referenceListWord = (wordId) => {
  return request({
    url: `/qia-cloud-middle/wd-word-flow/referenceList/${wordId}`,
    method: 'get'
  })
}
/**
 * 单词-分页列表查询 草稿
 * @param{obj}   body类型
*/
export function getWordList(data) {
  return request({
    url: `/qia-cloud-middle/wd-word-flow/queryPage`,
    method: 'post',
    data
  })
}
/**
 *
 * @returns 根据type查询用户
 */
 export const getAllUser = () => {
  return request({
    url: '/qia-cloud-user/user/queryByType/2',
    method: 'get'
  })
}
/**
 *@param {*} data
 * @returns 根据字典类型查询字典数据
 */
 export const getDictData = (data) => {
  return request({
    url: `/qia-cloud-user/dictData/queryByDictType/${data}`,
    method: 'get'
  })
}
/**
 *
 * @returns 标签分类
 */
 export const getLabelCategory = (labelCategoryId = 0) => {
  return request({
    url: `/qia-cloud-middle/sys-label/queryPage`,
    method: 'post',
    data: {
      currPage: 1,
      pageSize: 100,
      labelCategoryId
    }
  })
}
/**
 *
 * @param {*} data
 * @returns 获取标签
 */
 export const getLabel = () => {
  return request({
    url: `/qia-cloud-middle/sys-label/queryPage`,
    method: 'get'
  })
}
/**
 * 新增单词
*/
export function saveNewWord(data) {
  return request({
    url: `/qia-cloud-middle/wd-word-flow/saveOrUpdate`,
    method: 'put',
    data
  })
}
/**
 *@param {*} id
 * @returns 根据id查询单词
 */
 export const getWordInfo = (id) => {
  return request({
    url: `/qia-cloud-middle/wd-word-flow/queryWordInfoById/${id}`,
    method: 'get'
  })
}
/**
 *@param {*} id
 * @returns 根据id查询单词已发布
 */
export const getWordInfoPublish = (id) => {
  return request({
    url: `/qia-cloud-middle/wd-word/queryWordInfoById/${id}`,
    method: 'get'
  })
}


/**
 *@param {*} data
 * @returns 批量修改单词
 */
 export const wordStatusChangeBatch = (data) => {
  return request({
    url: `/qia-cloud-middle/wd-word-flow/updateBatch`,
    method: 'put',
    data
  })
}
/**
 * 批量新增
*/
export function setRemarkBacth(data) {
  return request({
    url: `/qia-cloud-middle/work-flow/saveHistoryBatch`,
    method: 'put',
    data
  })
}
/**
 *@param {*} data
 * @returns 批量添加标签
 */
 export const addLables = (data) => {
  return request({
    method: 'POST',
    url: `/qia-cloud-middle/sys-label-relation/addLabel`,
    data
  })
}
/**
 *
 * @param {*} id
 * @returns 批量删除标签
 */
 export const delLabelBatch = (data) => {
  return request({
    url: `/qia-cloud-middle/sys-label-relation/delLabel`,
    method: 'post',
    data
  })
}
/**
 * @param  进池子
*/
export function pushPool(data) {
  return request({
    url: `/qia-cloud-middle/pp-push-pool/pushPool`,
    method: 'put',
    data
  })
}
/**
 *@param {*} data
 * @returns 修改单词
 */
 export const wordStatusChanges = (data) => {
  return request({
    url: `/qia-cloud-middle/wd-word-flow/auditWordBatch`,
    method: 'put',
    data
  })
}
/**
 *@param {*} data
 * @returns 发布的单词
 */

 export const materialAllWord = (data) => {
  return request({
    url: `/qia-cloud-middle/wd-word/queryPage`,
    method: 'POST',
    data
  })
}
/**
 *@param {*} data
 * @returns 修改单词
 */
 export const wordStatusChange = (data) => {
  return request({
    url: `/qia-cloud-middle/wd-word-flow/auditWord`,
    method: 'put',
    data
  })
}
/**
 *@param {*} data
 * @returns 替换所有图片
 */
 export const replacePicture = (data) => {
  return request({
    url: `/qia-cloud-middle/wd-word-flow/replacePicture`,
    method: 'put',
    data
  })
}
/**
 *@param {*} data
 * @returns 替换所有音频
 */
 export const replaceAudio = (data) => {
  return request({
    url: `/qia-cloud-middle/wd-word-flow/replaceSong`,
    method: 'put',
    data
  })
}


// 音频
/**
 * params
 * @param  音频-分页列表查询
*/
export function getAudioList(data) {
  return request({
    url: `/qia-cloud-middle/sg-song-flow/queryPage`,
    method: 'POST',
    data
  })
}
/**
 * params
 * @param  音频-分页列表查询发布
*/
export function getAudioListShelf(data) {
  return request({
    url: `/qia-cloud-middle/sg-song/queryPage`,
    method: 'POST',
    data
  })
}
/**
 * @param  新增音频
*/
export function addAudio(data) {
  return request({
    url: `/qia-cloud-middle/sg-song-flow/saveOrUpdate`,
    method: 'put',
    data
  })
}
/**
 * @param  音频状态变更
*/
export function editAudioStatuss(data) {
  return request({
    url: `/qia-cloud-middle/sg-song-flow/auditSongBatch`,
    method: 'put',
    data
  })
}
/**
 * @param  批量修改音频
*/
export function batchEditAudio(data) {
  return request({
    url: `/qia-cloud-middle/sg-song-flow/updateBatch`,
    method: 'put',
    data
  })
}

// 主题课
/** *
 * 
添加到用户级别课
 * **/
export function AddUserClass(data) {
	return request({
		method: 'put',
		url: `/qia-cloud-middle/ls-lesson/addLesson`,
		data
	})
}

/** *
 * 
分页查询主题课
 * **/
export function PagingQuerySubjectClasses(data) {
	return request({
		method: 'POST',
		url: `/qia-cloud-middle/ls-lesson/queryLessonByPage`,
		data
	})
}
/** *
 * 
按id查询主题课
 * **/
export function AddUserClassById(id) {
	return request({
		method: ' GET',
		url: `/qia-cloud-middle/ls-lesson/queryLessonInfoById/${id}`,
	})
}
/** *
 * 
批量上下架
 * **/
export function BulkLoadingAndUnloading(data) {
	return request({
		method: 'put',
		url: `/qia-cloud-middle/ls-lesson/addLesson`,
		data
	})
}

// 主题课 流程

/** *
 * 
审批主题课
 * **/
export function SubjectApprovalCourse(data) {
	return request({
		method: 'put',
		url: `/qia-cloud-middle/ls-lesson-flow/auditLesson`,
		data
	})
}
/** *
 * 
批量审批主题课
 * **/
export function BatchApprovalAubjectCourse(data) {
	return request({
		method: 'put',
		url: `/qia-cloud-middle/ls-lesson-flow/auditLessonBatch`,
		data
	})
}
/** *
 * 
分页查询主题课
 * **/
export function PagingQuerySubjectSlasses(data) {
	return request({
		method: 'post',
		url: `/qia-cloud-middle/ls-lesson-flow/queryLessonByPage`,
		data
	})
}
/** *
 * 
按id查询主题课
 * **/
export function QuerySubjectCoursesByID(id) {
	return request({
		method: 'get',
		url: `/qia-cloud-middle/ls-lesson-flow/queryLessonInfoById/${id}`,
	})
}
/** *
 * 
分页查询池子中的数据
 * **/
export function PagingQueryTheData(data) {
	return request({
		method: 'post',
		url: `/qia-cloud-middle/ls-lesson-flow/queryPagePool`,
		data
	})
}
/** *
 * 
新增或修改主题课
 * **/
export function AddOrModifyThemeCourses(data) {
	return request({
		method: 'put',
		url: `/qia-cloud-middle/ls-lesson-flow/saveOrUpdateLesson`,
		data
	})
}
// 新增用户主题课
export function userThemeAdd(data) {
  return request({
    url: `/qia-cloud-middle/ls-lesson-rank/saveOrUpdateRank`,
    method: 'put',
    data
  })
}
// 移除
export function userThemeUpdateBatch(data) {
  return request({
    url: `/qia-cloud-middle/ls-lesson-rank/updateBatch`,
    method: 'put',
    data
  })
}
export function userThemePush(data) {
  return request({
    url: `/qia-cloud-middle/ls-lesson/addLesson`,
    method: 'put',
    data
  })
}
/** *
 * 
批量修改主题课
 * **/
export function ModifySubjectCoursesInBatches(data) {
	return request({
		method: 'put',
		url: `/qia-cloud-middle/ls-lesson-flow/updateBatchLesson`,
		data
	})
}
export function delUserLesson(data) {
  return request({
    url: `/qia-cloud-middle/ls-lesson-rank/delLesson`,
    method: 'put',
    data
  })
}
/** *
 * 
批量修改主题课
 * **/
export function updateUserLessonBatch(data) {
  return request({
    url: `/qia-cloud-middle/ls-lesson-rank/updateLessonBatch`,
    method: 'put',
    data
  })
}

// 书本句子
/** *
 * 
按书本内容id查询句子和单词
 * **/
export function QuerySentencesAndWrdsByBookContentID(contentId) {
	return request({
		method: 'get',
		url: `/qia-cloud-middle/bk-book-content-sentence/querySentenceAndWord/${contentId}`,
	})
}

export function configurationSubject(data) {
  return request({
    url: `/qia-cloud-middle/dt-task/configurationSubject`,
    method: 'put',
    data
  })
}
export function querySubjectInfoByTaskId(TaskId) {
  return request({
    url: `/qia-cloud-middle/dt-task/querySubjectInfoByTaskId/${TaskId}`,
    method: 'get'
  })
}
export function publishingTask() {
  return request({
    url: `/qia-cloud-middle/dt-task/addRedis`,
    method: 'post'

  })
}
export function configurationFollow(data) {
  return request({
    url: `/qia-cloud-middle/dt-task/configurationFollow`,
    method: 'put',
    data
  })
}
export function editTask(data) {
  return request({
    url: `/qia-cloud-middle/dt-task/updateTask`,
    method: 'put',
    data
  })
}
/** *
 * 
按书籍id查询所有句子和单词
 * **/
export function QueryAllSentencesndWordsByBookID(bookId) {
	return request({
		method: 'get',
		url: `/qia-cloud-middle/bk-book-content-sentence/querySentenceAndWordAll/${bookId}`,
	})
}
export function queryTaskRedisByPage(data) {
  return request({
    url: `/qia-cloud-middle/dt-task/queryTaskRedisByPage`,
    method: 'post',
    data
  })
}
// 书本句子流程

/** *
 * 
按书本内容id查询句子和单词
 * **/
export function QuerySentencesAndWordsByBookContentID(contentId) {
	return request({
		method: 'get',
		url: `/qia-cloud-middle/bk-book-content-sentence-flow/querySentenceAndWord/${contentId}`,
	})
}
/** *
 * 
按书籍id查询所有句子和单词
 * **/
export function QueryallsentencesandwordsbybookID(bookId) {
	return request({
		method: 'get',
		url: `/qia-cloud-middle/bk-book-content-sentence-flow/querySentenceAndWordAll/${bookId}`,
	})
}
/** *
 * 
修改句子和单词
 * **/
export function Revisesentencesandwords(data) {
	return request({
		method: 'put',
		url: `/qia-cloud-middle/bk-book-content-sentence-flow/updateSentenceAndWord`,
		data
	})
}


// 亲子对战

/** *
 * 
自动生成亲子对战
 * **/
export function Automaticallygeneratesparentchildbattles(data) {
	return request({
		method: 'get',
		url: `/qia-cloud-middle/game-battle/autoGenerationByBattle`,
		data
	})
}
/** *
 * 
按书籍id查询亲子对战
 * **/
export function ClickbookIDtoqueryparentchildbattle(bookId) {
	return request({
		method: 'get',
		url: `/qia-cloud-middle/game-battle/queryBattleInfoByBookId/${bookId}`,
	})
}
/** *
 * 
按id查询亲子对战
 * **/
export function QueryparentchildbattlebyID(id) {
	return request({
		method: 'get',
		url: `/qia-cloud-middle/game-battle/queryBattleInfoById/${id}`,
	})
}
/** *
 * 

新增或者修亲子游戏
 * **/
export function Addorfixparentchildgames(data) {
	return request({
		method: 'put',
		url: `qia-cloud-middle/game-battle/saveOrUpdate`,
		data
	})
}

// 升级规则

/** *
 * 

分页查询升级规则
 * **/
export function Pagingqueryupgraderules(data) {
	return request({
		method: 'post',
		url: `/qia-cloud-middle/sys-upgrade-rule/queryPage`,
		data
	})
}

/** *
 * 
按id查询升级规则
 * **/
export function QueryupgraderulesbyID(id) {
	return request({
		method: 'get',
		url: `/qia-cloud-middle/sys-upgrade-rule/queryRuleInfoById/${id}`,
	})
}

/** *
 * 

新增或者修改升级规则
 * **/
export function Addedormodifiedupgraderules(data) {
	return request({
		method: 'put',
		url: `/qia-cloud-middle/sys-upgrade-rule/saveOrUpdateUpgrade`,
		data
	})
}
/** *
 * 

批量修改升级规则
 * **/
export function Batchmodifyupgraderules(data) {
	return request({
		method: 'put',
		url: `/qia-cloud-middle/sys-upgrade-rule/updateBatch`,
		data
	})
}

// 单词

/** *
 * 

分页查询单词
 * **/
export function Pagingqueryword(data) {
	return request({
		method: 'post',
		url: `/qia-cloud-middle/wd-word/queryPage`,
		data
	})
}


/** *
 * 
按id查询单词
 * **/
export function QuerywordsbyID(id) {
	return request({
		method: 'get',
		url: `/qia-cloud-middle/wd-word/queryWordInfoById/${id}`,
	})
}

// 单词流程

/** *
 * 

审批单词
 * **/
export function Forexaminationapprovaloftheword(data) {
	return request({
		method: 'put',
		url: `/qia-cloud-middle/wd-word-flow/auditWord`,
		data
	})
}

/** *
 * 

批量审批单词
 * **/
export function Batchapprovalwords(data) {
	return request({
		method: 'put',
		url: `/qia-cloud-middle/wd-word-flow/auditWordBatch`,
		data
	})
}

/** *
 * 

分页查询单词
 * **/
export function Pagingquerywords(data) {
	return request({
		method: 'post',
		url: `/qia-cloud-middle/wd-word-flow/queryPage`,
		data
	})
}
/** *
 * 

分页查询池子中的数据
 * **/
export function Pagingquerythedatainthepool(data) {
	return request({
		method: 'post',
		url: `/qia-cloud-middle/wd-word-flow/queryPagePool`,
		data
	})
}

/** *
 * 
按id查询单词
 * **/
export function QuerywordsbyIDflow(id) {
	return request({
		method: 'get',
		url: `/qia-cloud-middle/wd-word-flow/queryWordInfoById/${id}`,
	})
}
/** *
 * 
查询引用列表
 * **/
export function Queryreferencelist(wordId) {
	return request({
		method: 'get',
		url: `/qia-cloud-middle/wd-word-flow/referenceList/${wordId}`,
	})
}

/** *
 * 
删除数据
 * **/
export function deleteddataflow(id) {
	return request({
		method: 'delete',
		url: `/qia-cloud-middle/wd-word-flow/remove/${id}`,
	})
}

/** *
 * 
替换图片
 * **/
export function Replacetheimage(data) {
	return request({
		method: 'put',
		url: `/qia-cloud-middle/wd-word-flow/replacePicture`,
		data
	})
}
/** *
 * 

替换音频
 * **/
export function Replacetheaudio(data) {
	return request({
		method: 'put',
		url: `/qia-cloud-middle/wd-word-flow/replaceSong`,
		data
	})
}

/** *
 * 

新增单词或修改
 * **/
export function Newwordsormodificationsflow(data) {
	return request({
		method: 'put',
		url: `/qia-cloud-middle/wd-word-flow/saveOrUpdate`,
		data
	})
}

/** *
 * 
批量修改单词
 * **/
export function Batchchangewordsflow(data) {
	return request({
		method: 'put',
		url: `/qia-cloud-middle/wd-word-flow/updateBatch`,
		data
	})
}

// 圈图库


/** *
 * 
分页查询圈图库
 * **/
export function Pagingquerycirclegallery(data) {
	return request({
		method: 'post',
		url: `/qia-cloud-middle/game/queryGameByPage`,
		data
	})
}

/** *
 * 
查询引用列表
 * **/
export function Querycirclegallerybyid(id) {
	return request({
		method: 'get',
		url: `/qia-cloud-middle/game/queryGameInfoById/${id}`,
	})
}

/** *
 * 
新增或者修圈图库
 * **/
export function Addormodifycirclegallery(data) {
	return request({
		method: 'put',
		url: `/qia-cloud-middle/game/saveOrUpdate`,
		data
	})
}

/** *
 * 
批量修改
 * **/
export function Modifythecirclediagraminbatches(data) {
	return request({
		method: 'put',
		url: `/qia-cloud-middle/game/updateBatch`,
		data
	})
}

// 奖励配置

/** *
 * 
查询拓展学习
 * **/
export function Inquiryextendedlearnin(data) {
	return request({
		method: 'post',
		url: `/qia-cloud-middle/sys-reward-config/queryLearn`,
		data
	})
}
/** *
 * 
查询体系课
 * **/
export function InquirySystemSection(data) {
	return request({
		method: 'post',
		url: `/qia-cloud-middle/sys-reward-config/queryLesson`,
		data
	})
}
/** *
 * 
查询每日任务
 * **/
export function QueryingdailyTasks(data) {
	return request({
		method: 'post',
		url: `/qia-cloud-middle/sys-reward-config/queryTask`,
		data
	})
}

/** *
 * 
新增或修改奖励配置
 * **/
export function Addedormodifiedtherewardconfiguration(data) {
	return request({
		method: 'put',
		url: `/qia-cloud-middle/sys-reward-config/saveOrUpdate`,
		data
	})
}

/** *
 * 
批量修改奖励配置
 * **/
export function Modifyrewardconfigurationsbatches(data) {
	return request({
		method: 'put',
		url: `/qia-cloud-middle/sys-reward-config/updateBatch`,
		data
	})
}

// 学习视频

/** *
 * 
按id查询学习视频
 * **/
export function QuerylearningvideosbyID(id) {
	return request({
		method: 'get',
		url: `/qia-cloud-middle/le-video/queryLeVideoInfoById/${id}`,
	})
}


/** *
 * 
分页查询学习视频
 * **/
export function Pagingquerylearningvideos(data) {
	return request({
		method: 'post',
		url: `/qia-cloud-middle/le-video/queryPage`,
		data
	})
}


/** *
 * 
批量上下架
 * **/
export function Bulkloadingandunloading(data) {
	return request({
		method: 'put',
		url: `/qia-cloud-middle/le-video/updateUpperLowerBatch`,
		data
	})
}


// 学习视频流程


/** *
 * 
审核视频
 * **/
export function Approvelearningvideos(data) {
	return request({
		method: 'put',
		url: `/qia-cloud-middle/le-video-flow/auditLeVideo`,
		data
	})
}


/** *
 * 
批量审批学习视频
 * **/
export function Batchapprovaloflearningvideos(data) {
	return request({
		method: 'put',
		url: `/qia-cloud-middle/le-video-flow/auditLeVideoBatch`,
		data
	})
}


/** *
 * 
导入视频
 * **/
export function Importvideo(data) {
	return request({
		method: 'put',
		url: `/qia-cloud-middle/le-video-flow/importVideo`,
		data
	})
}

/** *
 * 
按id查询学习视频
 * **/
export function QuerylearningLevideosbyID(id) {
	return request({
		method: 'get',
		url: `/qia-cloud-middle/le-video-flow/queryLeVideoInfoById/${id}`,
	})
}

/** *
 * 
分页查询学习视频
 * **/
export function Pagingquerylearningvideosflow(data) {
	return request({
		method: 'post',
		url: `/qia-cloud-middle/le-video-flow/queryPage`,
		data
	})
}

/** *
 * 
分页查询池子中的数据
 * **/
export function Pagingquerythedatainthevideopool(data) {
	return request({
		method: 'post',
		url: `/qia-cloud-middle/le-video-flow/queryPagePool`,
		data
	})
}


/** *
 * 
新增或者修改学习视频
 * **/
export function Addormodifylearningvideos(data) {
	return request({
		method: 'put',
		url: `/qia-cloud-middle/le-video-flow/saveOrUpdateLeVideo`,
		data
	})
}
// 学习视频课后题
export function getLevideoSubject(LeVideoId) {
  return request({
    url: `/qia-cloud-middle/st-subject/querySubjectInfoByLeVideoId/${LeVideoId}`,
    method: 'get'
  })
}
export function getPlanData(data) {
  return request({
    url: `/qia-cloud-middle/dt-task/queryTaskByPage`,
    method: 'post',
    data
  })
}
export function getMapping(data) {
  return request({
    url: `/qia-cloud-middle/sys-level-mapping/queryPage`,
    method: 'post',
    data
  })
}
/** *
 * 
批量修改
 * **/
export function bulkediting(data) {
	return request({
		method: 'put',
		url: `/qia-cloud-middle/le-video-flow/updateBatch`,
		data
	})
}


// 学习计划


/** *
 * 
添加到缓存
 * **/
export function Addtocache(data) {
	return request({
		method: 'post',
		url: `/qia-cloud-middle/dt-task/addRedis`,
		data
	})
}

/** *
 * 
配置题目
 * **/
export function Configurethetopic(data) {
	return request({
		method: 'put',
		url: `/qia-cloud-middle/dt-task/configurationSubject`,
		data
	})
}

/** *
 * 
导入任务
 * **/
export function Importtask(data) {
	return request({
		method: 'put',
		url: `/qia-cloud-middle/dt-task/importTask`,
		data
	})
}

/** *
 * 
推送至学习计划
 * **/
export function Pushtothelearningplan(data) {
	return request({
		method: 'put',
		url: `/qia-cloud-middle/dt-task/pushPool`,
		data
	})
}

/** *
 * 
按taskId查询配置题目
 * **/
export function QueryconfigurationquestionsbytaskId(TaskId) {
	return request({
		method: 'get',
		url: `/qia-cloud-middle/dt-task/querySubjectInfoByTaskId/${TaskId}`,
	})
}


/** *
 * 
分页查询学习计划
 * **/
export function Pagingquerystudyplans(data) {
	return request({
		method: 'post',
		url: `/qia-cloud-middle/dt-task/queryTaskByPage`,
		data
	})
}

/** *
 * 
按id查询学习计划
 * **/
export function QueryalearningplanbyID(id) {
	return request({
		method: 'get',
		url: `/qia-cloud-middle/dt-task/queryTaskInfoById/${id}`,
	})
}


/** *
 * 
批量移除环节
 * **/
export function Batchremovallink(data) {
	return request({
		method: 'put',
		url: `/qia-cloud-middle/dt-task/removeBatchLink`,
		data
	})
}

/** *
 * 
排序
 * **/
export function sortord(data) {
	return request({
		method: 'put',
		url: `/qia-cloud-middle/dt-task/task/sort`,
		data
	})
}

/** *
 * 
批量修改任务
 * **/
export function BatchModificationTasks(data) {
	return request({
		method: 'put',
		url: `/qia-cloud-middle/dt-task/updateBatchTask`,
		data
	})
}

/** *
 * 
修改任务
 * **/
export function Modifythetask(data) {
	return request({
		method: 'put',
		url: `/qia-cloud-middle/dt-task/updateTask`,
		data
	})
}

// 定级规则

/** *
 * 
分页查询定级规则
 * **/
export function Pagingquerygradingrules(data) {
	return request({
		method: 'post',
		url: `/qia-cloud-middle/sys-grade-rule/queryPage`,
		data
	})
}


/** *
 * 
按id查询学习计划
 * **/
export function QuerygradingrulesbyID(id) {
	return request({
		method: 'get',
		url: `/qia-cloud-middle/sys-grade-rule/queryRuleInfoById/${id}`,
	})
}


/** *
 * 
删除定级规则
 * **/
export function Deletethegradingrule(id) {
	return request({
		method: 'DELETE',
		url: `/qia-cloud-middle/sys-grade-rule/remove/${id}`,
	})
}

/** *
 * 
新增或者修改定级规则
 * **/
export function Addormodifygradingrules(data) {
	return request({
		method: 'put',
		url: `/qia-cloud-middle/sys-grade-rule/saveOrUpdate`,
		data
	})
}

// 工作流程

/** *
 * 
查询所有处理状态
 * **/
export function ExampleQueryallprocessingstatus(data) {
	return request({
		method: 'post',
		url: `/qia-cloud-middle/work-flow/queryFlowOfALL`,
		data
	})
}
/** *
 * 
查询视频专辑处理状态
 * **/
export function Querystatusvideoalbums(data) {
	return request({
		method: 'post',
		url: `/qia-cloud-middle/work-flow/queryFlowOfAlbum`,
		data
	})
}
/** *
 * 
查询泛读书处理状态
 * **/
export function Querytheprocessingstatusofextensivereading(data) {
	return request({
		method: 'post',
		url: `/qia-cloud-middle/work-flow/queryFlowOfBkBook`,
		data
	})
}

/** *
 * 
查询精读书处理状态
 * **/
export function Queryprocessingstatusoffinereading(data) {
	return request({
		method: 'post',
		url: `/qia-cloud-middle/work-flow/queryFlowOfIrBook`,
		data
	})
}
/** *
 * 
查询主题课处理状态
 * **/
export function Querystatussubjectcourse(data) {
	return request({
		method: 'post',
		url: `/qia-cloud-middle/work-flow/queryFlowOfLesson`,
		data
	})
}
/** *
 * 
查询试卷处理状态
 * **/
export function Querytestpaperprocessingstatus(data) {
	return request({
		method: 'post',
		url: `/qia-cloud-middle/work-flow/queryFlowOfPaper`,
		data
	})
}
/** *
 * 
查询音频处理状态
 * **/
export function Querytheaudioprocessingstatus(data) {
	return request({
		method: 'post',
		url: `/qia-cloud-middle/work-flow/queryFlowOfSong`,
		data
	})
}
/** *
 * 
查询视频处理状态
 * **/
export function Querythevideoprocessingstatus(data) {
	return request({
		method: 'post',
		url: `/qia-cloud-middle/work-flow/queryFlowOfVideo`,
		data
	})
}
/** *
 * 
查询单词处理状态
 * **/
export function Querythewordprocessingstatus(data) {
	return request({
		method: 'post',
		url: `/qia-cloud-middle/work-flow/queryFlowOfWord`,
		data
	})
}
/** *
 * 
查询未处理的个数
 * **/
export function Querythenumberpackets(data) {
	return request({
		method: 'post',
		url: `/qia-cloud-middle/work-flow/queryUntreatedCount`,
		data
	})
}
/** *
 * 
查询各库未处理的个数
 * **/
export function Querynumberofunprocesseddatabases(data) {
	return request({
		method: 'post',
		url: `/qia-cloud-middle/work-flow/queryUntreatedEachCount`,
		data
	})
}
/** *
 * 
查询历史记录
 * **/
export function QueryingHistoricalRecords(data) {
	return request({
		method: 'post',
		url: `/qia-cloud-middle/work-flow/queryHistory`,
		data
	})
}


/** *
 * 
新增历史记录
 * **/
export function Addhistory(data) {
	return request({
		method: 'put',
		url: `/qia-cloud-middle/work-flow/saveHistory`,
		data
	})
}

/** *
 * 
批量新增历史记录
 * **/
export function Addhistoricalrecordsinbatches(data) {
	return request({
		method: 'put',
		url: `/qia-cloud-middle/work-flow/saveHistoryBatch`,
		data
	})
}

// 探索区

/** *
 * 
分页查询泛读区泛读书
 * **/
export function Pagingqueryextensivereading(data) {
	return request({
		method: 'post',
		url: `/qia-cloud-middle/pc-explore-pool/queryExplorePoolByBook`,
		data
	})
}

/** *
 * 
分页查询探索区学习视频
 * **/
export function querylearningvideo(data) {
	return request({
		method: 'post',
		url: `/qia-cloud-middle/pc-explore-pool/queryExplorePoolByLeVideo`,
		data
	})
}

/** *
 * 
分页查询探索区视频
 * **/
export function Pagingqueryexplorationareavideo(data) {
	return request({
		method: 'post',
		url: `/qia-cloud-middle/pc-explore-pool/queryExplorePoolByVideo`,
		data
	})
}

/** *
 * 
分页查询教学区精读书
 * **/
export function Pagingqueryteachingareafinereading(data) {
	return request({
		method: 'post',
		url: `/qia-cloud-middle/pc-explore-pool/queryPage`,
		data
	})
}

/** *
 * 
分页查询泛读区
 * **/
export function Pagingqueryextensivereadarea(data) {
	return request({
		method: 'post',
		url: `/qia-cloud-middle/pc-explore-pool/queryPageOfExtensiveArea`,
		data
	})
}

/** *
 * 
分页查询教学区
 * **/
export function Pagingqueryteachingarea(data) {
	return request({
		method: 'post',
		url: `/qia-cloud-middle/pc-explore-pool/queryPageOfTeachingArea`,
		data
	})
}

/** *
 * 
新增或者修改探索区
 * **/
export function Addormodifyexplorationareas(data) {
	return request({
		method: 'put',
		url: `/qia-cloud-middle/pc-explore-pool/saveOrUpdate`,
		data
	})
}


/** *
 * 
批量新增或者修改探索区
 * **/
export function Addormodifybatches(data) {
	return request({
		method: 'put',
		url: `/qia-cloud-middle/pc-explore-pool/saveOrUpdateBatch`,
		data
	})
}


/** *
 * 
批量修改
 * **/
export function bulkeditingexplore(data) {
	return request({
		method: 'put',
		url: `/qia-cloud-middle/pc-explore-pool/updateBatch`,
		data
	})
}

/**
 * @param  根据id查询音频
*/
export function queryByIdAudio(id) {
  return request({
    url: `/qia-cloud-middle/sg-song-flow/querySongInfoById/${id}`,
    method: 'get'
  })
}
/**
 * @param  根据id查询音频发布
*/
export function queryByIdAudioPublish(id) {
  return request({
    url: `/qia-cloud-middle/sg-song/querySongInfoById/${id}`,
    method: 'get'
  })
}
/**
 * @param  音频状态变更
*/
export function editAudioStatus(data) {
  return request({
    url: `/qia-cloud-middle/sg-song-flow/auditSong`,
    method: 'put',
    data
  })
}
// ```````````````视频
/**
 * params
 * @param  视频-分页列表查询
*/
export function getVideoList(data) {
  return request({
    url: `/qia-cloud-middle/ve-video-flow/queryPage`,
    method: 'POST',
    data
  })
}
/**
 * @param  根据id查询视频
*/
export function queryByIdVideo(id) {
  return request({
    url: `/qia-cloud-middle/ve-video-flow/queryVideoInfoById/${id}`,
    method: 'get'
  })
}
/**
 * @param  分页视频发布
*/
export function getVideoListShelf(data) {
  return request({
    url: `/qia-cloud-middle/ve-video/queryPage`,
    method: 'post',
    data
  })
}
/**
 * @param  新增视频
*/
export function addVideo(data) {
  return request({
    url: `/qia-cloud-middle/ve-video-flow/saveOrUpdate`,
    method: 'put',
    data
  })
}

export function updateBatchPlanData(data) {
  return request({
    url: `/qia-cloud-middle/dt-task/updateBatch`,
    method: 'put',
    data
  })
}
/**
 * @param  根据id查询视频发布
*/
export function queryByIdVideoPublish(id) {
  return request({
    url: `/qia-cloud-middle/ve-video/queryVideoInfoById/${id}`,
    method: 'get'
  })
}
/**
 * @param  视频状态变更
*/
export function editVideoStatus(data) {
  return request({
    url: `/qia-cloud-middle/ve-video-flow/auditVideo`,
    method: 'put',
    data
  })
}
/**
 * @param  视频状态变更
*/
export function editVideoStatuss(data) {
  return request({
    url: `/qia-cloud-middle/ve-video-flow/auditVideoBatch`,
    method: 'put',
    data
  })
}
/**
 * @param  批量修改视频
*/
export function editVideoInfoBatch(data) {
  return request({
    url: `/qia-cloud-middle/ve-video-flow/updateBatch`,
    method: 'put',
    data
  })
}

/**
 *
 * @returns 新增视频专辑
 */
 export function addAlbumVideo(data) {
  return request({
    url: `/qia-cloud-middle/av-album-video-flow/saveOrUpdate`,
    method: 'PUT',
    data
  })
}
/**
 *
 * @returns 发布分页
 */
export function getAlbumVideoAllPublish(data) {
  return request({
    url: `/qia-cloud-middle/av-album-video/queryPage`,
    method: 'POST',
    data
  })
}
/**
 *
 * @returns 审批视频专辑
 */
export function updataAlbumVideoStatus(data) {
  return request({
    url: `/qia-cloud-middle/av-album-video-flow/auditAlbum`,
    method: 'PUT',
    data
  })
}
/**
 *
 * @returns 审批视频专辑
 */
export function updataAlbumVideoStatuss(data) {
  return request({
    url: `/qia-cloud-middle/av-album-video-flow/auditAlbumBatch`,
    method: 'PUT',
    data
  })
}
/**
 *
 * @returns 修改视频专辑
 */
export function editAlbumVideo(data) {
  return request({
    url: `/qia-cloud-middle-stage/albumVideo/update`,
    method: 'PUT',
    data
  })
}
/**
 *
 * @returns 根据id查视频专辑
 */
export function getAlbumVideo(id) {
  return request({
    url: `/qia-cloud-middle/av-album-video-flow/queryAlbumInfoById/${id}`,
    method: 'get'
  })
}
/**
 *
 * @returns 根据id查视频专辑发布
 */
export function getAlbumVideoPublish(id) {
  return request({
    url: `/qia-cloud-middle/av-album-video/queryAlbumInfoById/${id}`,
    method: 'get'
  })
}
/**
 *
 * @returns 视频专辑分页查询
 */
export function getAlbumVideoAll(data, params) {
  return request({
    url: `/qia-cloud-middle/av-album-video-flow/queryPage`,
    method: 'post',
    data,
    params
  })
}
/**
 *
 * @returns 视频专辑批量编辑
 */
 export function editAlbumBatch(data) {
  return request({
    url: `/qia-cloud-middle/av-album-video-flow/updateBatch`,
    method: 'PUT',
    data
  })
}


// 

/**
 * 书籍——分页列表查询
 * @param{obj}   body类型
*/
export function getBookList(data) {
  return request({
    url: `/qia-cloud-middle/bk-book-flow/queryPage`,
    method: 'post',
    data
  })
}
/**
 * 精读书籍——分页列表查询
 * @param{obj}   body类型
*/
export function getIntensiveBookList(data) {
  return request({
    url: `/qia-cloud-middle/ir-book-word-flow/queryPage`,
    method: 'post',
    data
  })
}

/**
 * 精读书籍——分页列表查询发布
 * @param{obj}   body类型
*/
export function getPublishedIntensiveBookList(data) {
  return request({
    url: `/qia-cloud-middle/ir-book-word/queryPage`,
    method: 'post',
    data
  })
}


/**
 *
 * @param {*} data
 * @returns 批量修改绘本
 */
 export function editBookBatch(params) {
  return request({
    url: `/qia-cloud-middle/bk-book-flow/updateBatch`,
    method: 'put',
    data: params

  })
}
/**
 * 已发布书籍，分页列表查询
 * @param{obj}   body类型
 * @param{number} pageNo  query类型
 * @param{number} pageSize  query类型
*/
export function getPublishedBookList(data) {
  return request({
    url: `/qia-cloud-middle/bk-book/queryPage`,
    method: 'post',
    data
  })
}
/**
 *
 * @param {*} data
 * @returns 批量修改精读绘本
 */
export function editIntensiveBookBatch(params) {
  return request({
    url: `/qia-cloud-middle/ir-book-word-flow/updateBatch`,
    method: 'put',
    data: params

  })
}
/**
 * 审批精读书
 * @param{obj}   body类型
*/
export function editBookStas(data) {
  return request({
    url: `/qia-cloud-middle/ir-book-word-flow/auditBookBatch`,
    method: 'put',
    data
  })
}
/**
 * 审批精读书
 * @param{obj}   body类型
*/
export function editBookSta(data) {
  return request({
    url: `/qia-cloud-middle/ir-book-word-flow/auditBook`,
    method: 'put',
    data
  })
}
/**
 *
 * @param {*} data
 * @returns 修改绘本状态
 */
 export function editBookStatus(params) {
  return request({
    url: `/qia-cloud-middle/bk-book-flow/auditBook`,
    method: 'put',
    data: params

  })
}
/**
 *
 * @param {*} data
 * @returns 修改绘本状态
 */
export function editBookStatuss(params) {
  return request({
    url: `/qia-cloud-middle/bk-book-flow/auditBookBatch`,
    method: 'put',
    data: params

  })
}
/**
 * 书籍——新增绘本
 * @param{obj}   body类型
*/
export function saveNewBook(params) {
  return request({
    url: `/qia-cloud-middle/bk-book-flow/saveOrUpdate`,
    method: 'put',
    data: params

  })
}

/**
 *
 * @param {*} id
 * @returns 根据绘本id查询绘本
 */
 export function queryByBookId(id) {
  return request({
    url: `/qia-cloud-middle/bk-book-flow/queryBookInfoById/${id}`,
    methods: 'get'
  })
}
/**
 *
 * @param {*} id
 * @returns 根据绘本id查询绘本
 */
export function queryByBookIdInten(id) {
  return request({
    url: `/qia-cloud-middle/bk-book/queryBookInfoById/${id}`,
    methods: 'get'
  })
}
/**
 *
 * @param {*} id
 * @returns 根据绘本id查询绘本jingdu
 */
 export function queryByBook(id) {
  return request({
    url: `/qia-cloud-middle/ir-book-word/queryBookInfoById/${id}`,
    methods: 'get'
  })
}
/**
 *
 * @param {*} id
 * @returns 根据绘本id查询绘本jingdu
 */
export function queryIntensiveByBookId(id) {
  return request({
    url: `/qia-cloud-middle/ir-book-word-flow/queryBookInfoById/${id}`,
    methods: 'get'
  })
}



// ````````````````````````````````````````````````
/**
 *@param {*} data
 * @returns 新增试卷
 */
 export const addTestPaper = (data) => {
  return request({
    method: 'put',
    url: '/qia-cloud-middle/tp-test-paper-flow/saveOrUpdate',
    data
  })
}
/**
 *@param {*} data
 * @returns 试卷-分页列表查询
 */
export const findTestPaper = (data) => {
  return request({
    method: 'post',
    url: '/qia-cloud-middle/tp-test-paper-flow/queryPage',
    data
  })
}
/**
 *@param {*} data
 * @returns 试卷-分页列表查询发布
 */
export const findTestPaperPublish = (data) => {
  return request({
    method: 'post',
    url: '/qia-cloud-middle/tp-test-paper/queryPage',
    data
  })
}
/**
 *@param {*} id
 * @returns 根据id查询试卷
 */
export const testSubject = (id) => {
  return request({
    method: 'get',
    url: `/qia-cloud-middle/tp-test-paper-flow/queryPaperInfoById/${id}`
  })
}
/**
 *@param {*} id
 * @returns 根据id查询试卷fabu
 */
 export function publishedTest(id) {
  return request({
    url: `/qia-cloud-middle/tp-test-paper/queryPaperInfoById/${id}`,
    method: 'get'
  })
}
/**
 *@param {*} data
 * @returns 修改试卷状态
 */
 export const editPaperStatus = (data) => {
  return request({
    method: 'put',
    url: `/qia-cloud-middle/tp-test-paper-flow/auditPaper`,
    data
  })
}
/**
 *@param {*} data
 * @returns 修改试卷状态
 */
export const editPaperStatuss = (data) => {
  return request({
    method: 'put',
    url: `/qia-cloud-middle/tp-test-paper-flow/auditPaperBatch`,
    data
  })
}
/**
 *@param {*} data
 * @returns 修改试卷
 */
 export const editTestInfo = (data) => {
  return request({
    method: 'put',
    url: `/qia-cloud-middle-stage/testPaper/update`,
    data
  })
}
/**
 *@param {*} data
 * @returns 批量修改试卷
 */
export const editTestInfoBatch = (data) => {
  return request({
    method: 'put',
    url: `/qia-cloud-middle/tp-test-paper-flow/updateBatch`,
    data
  })
}



// 题目
/**
 *@param {*} data
 * @returns 题目-分页列表查询
 */
 export const findSubject = (data) => {
  return request({
    method: 'post',
    url: `/qia-cloud-middle/st-subject/queryPage`,
    data
  })
}

// 圈图
/**
 * 圈图内容——分页列表查询
 * @param{obj}   body类型
 * @param{number} pageNo  query类型
 * @param{number} pageSize  query类型
*/
export function getGraphList(data) {
  return request({
    url: `/qia-cloud-middle/game/queryGameByPage`,
    method: 'post',
    data
  })
}
// 修改圈图内容新增
export function updateGraph(params) {
  return request({
    url: `/qia-cloud-middle/game/saveOrUpdate`,
    method: 'put',
    data: params
  })
}
// 圈图游戏——根据id查询游戏
export function getGraphDetailById(id) {
  return request({
    url: `/qia-cloud-middle/game/queryGameInfoById/${id}`,
    method: 'get'
  })
}


// 主题课包 草稿
export function getThemePackage(data) {
  return request({
    url: `/qia-cloud-middle/ls-lesson-flow/queryLessonByPage`,
    method: 'POST',
    data
  })
}
// 已发布分页
export function getThemePackagePublish(data) {
  return request({
    url: `/qia-cloud-middle/ls-lesson/queryLessonByPage`,
    method: 'POST',
    data
  })
}
// 新增
export function addNewTheme(data) {
  return request({
    url: `/qia-cloud-middle/ls-lesson-flow/saveOrUpdateLesson`,
    method: 'put',
    data
  })
}
// 草稿id
export function getThemeById(id) {
  return request({
    url: `/qia-cloud-middle/ls-lesson-flow/queryLessonInfoById/${id}`,
    method: 'get'
  })
}
// 发布id
export function getThemeByIdPublish(id) {
  return request({
    url: `/qia-cloud-middle/ls-lesson/queryLessonInfoById/${id}`,
    method: 'get'
  })
}
// 批量修改
export function editThemeBatch(data) {
  return request({
    url: `/qia-cloud-middle/ls-lesson-flow/updateBatchLesson`,
    method: 'put',
    data
  })
}
// 批量审核
export function editThemeStatusBatch(data) {
  return request({
    url: `/qia-cloud-middle/ls-lesson-flow/auditLessonBatch`,
    method: 'put',
    data
  })
}
// 用户主题分页
export function queryPageUserTheme(data) {
  return request({
    url: `/qia-cloud-middle/ls-lesson-rank/queryPage`,
    method: 'post',
    data
  })
}

/**
 * 修改密码
*/
export const editUserPassword = (data) => {
  return request({
    url: '/qia-cloud-user/auth/changePassword',
    method: 'put',
    data
  })
}

// 用户主题id
export function queryRankById(data) {
  return request({
    url: `/qia-cloud-middle/ls-lesson-rank/queryPageById`,
    method: 'post',
    data
  })
}

// 视频和专辑推送池
export function queryPageAllPool(data) {
  return request({
    url: `/qia-cloud-middle/ve-video/queryPageAllPool`,
    method: 'post',
    data
  })
}

// ``````````````````````````````

/**
 * 查看消息数量
*/
export function getMessage(data) {
  return request({
    url: `/qia-cloud-middle/work-flow/queryUntreatedCount`,
    method: 'POST'
  })
}
/**
 * 查询单词处理状态
*/
export function getMessageWord(data) {
  return request({
    url: `/qia-cloud-middle/work-flow/queryFlowOfWord`,
    method: 'POST',
    data
  })
}
/**
 * 查询音频处理状态
*/
export function getMessageAudio(data) {
  return request({
    url: `/qia-cloud-middle/work-flow/queryFlowOfSong`,
    method: 'POST',
    data
  })
}
/**
 * 查询视频处理状态
*/
export function getMessageVideo(data) {
  return request({
    url: `/qia-cloud-middle/work-flow/queryFlowOfVideo`,
    method: 'POST',
    data
  })
}
/**
 * 查询泛读处理状态
*/
export function getMessageBook(data) {
  return request({
    url: `/qia-cloud-middle/work-flow/queryFlowOfBkBook`,
    method: 'POST',
    data
  })
}
/**
 * 查询精读处理状态
*/
export function getMessageBookInten(data) {
  return request({
    url: `/qia-cloud-middle/work-flow/queryFlowOfIrBook`,
    method: 'POST',
    data
  })
}
/**
 * 查询试卷处理状态
*/
export function getMessagePaper(data) {
  return request({
    url: `/qia-cloud-middle/work-flow/queryFlowOfPaper`,
    method: 'POST',
    data
  })
}
/**
 * 查询专辑处理状态
*/
export function getMessageVideoAblum(data) {
  return request({
    url: `/qia-cloud-middle/work-flow/queryFlowOfAlbum`,
    method: 'POST',
    data
  })
}
/**
 * 查询专辑处理状态
*/
export function getMessageLessonAblum(data) {
  return request({
    url: `/qia-cloud-middle/work-flow/queryFlowOfLesson`,
    method: 'POST',
    data
  })
}

/**
 * 查询专辑处理状态数量
*/
export function getMessageCountNum() {
  return request({
    url: `/qia-cloud-middle/work-flow/queryUntreatedEachCount`,
    method: 'POST'
  })
}

/**
 * 查询所有处理状态
*/
export function getMessageAllStatus(data) {
  return request({
    url: `/qia-cloud-middle/work-flow/queryFlowOfALL`,
    method: 'POST',
    data

  })
}

/**
 * 试卷池子数据
*/
export function getPaperPool(data) {
  return request({
    url: `/qia-cloud-middle/tp-test-paper-flow/queryPagePool`,
    method: 'POST',
    data
  })
}

/**
 *@param {*} data
 * @returns 绘本查询池子
 */
 export const getPullBook = (data) => {
  return request({
    url: `/qia-cloud-middle/bk-book/queryPagePool`,
    method: 'post',
    data
  })
}

/**
 * @param  查询推送池配置列表
*/
export function getAllPool() {
  return request({
    url: `/qia-cloud-middle/pp-push-pool-config/queryPage`,
    method: 'POST'
  })
}
/**
 * @param  获取推送池数据
*/
export function getSongPool(data) {
  return request({
    url: `/qia-cloud-middle/sg-song/queryPagePool`,
    method: 'POST',
    data
  })
}
/**
 * @param  查推送数据
*/
export function getVideoPool(data) {
  return request({
    url: `/qia-cloud-middle/ve-video/queryPagePool`,
    method: 'post',
    data
  })
}
/**
 * @param  查推送数据
*/
export function getVideoAblumPool(data) {
  return request({
    url: `/qia-cloud-middle/av-album-video/queryPagePool`,
    method: 'post',
    data
  })
}
// 探索

/**
 * @param  新增书籍分类
*/
export function addBookCategory(data) {
  return request({
    url: `/qia-cloud-middle-stage/bookCategory/save`,
    method: 'put',
    data
  })
}
/**
 * @param  删除书籍分类
*/
export function delBookCategory(id) {
  return request({
    url: `/qia-cloud-middle-stage/bookCategory/deleteById/${id}`,
    method: 'DELETE'
  })
}
/**
 * @param  编辑书籍分类
*/
export function editBookCategory(data) {
  return request({
    url: `/qia-cloud-middle-stage/bookCategory/update`,
    method: 'put',
    data
  })
}
/**
 * @param  根据id书籍分类
*/
export function getBookCategory(id) {
  return request({
    url: `/qia-cloud-middle-stage/bookCategory/queryById/${id}`,
    method: 'get'
  })
}
/**
 * @param  查询所有书籍分类
*/
export function getAllBookCategory() {
  return request({
    url: `/qia-cloud-middle-stage/bookCategory/list`,
    method: 'POST'
  })
}
/**
 * @param  新增音频分类
*/
export function addSongCategory(data) {
  return request({
    url: `/qia-cloud-middle-stage/songCategory/save`,
    method: 'put',
    data
  })
}
/**
 * @param  删除音频分类
*/
export function delSongCategory(id) {
  return request({
    url: `/qia-cloud-middle-stage/songCategory/deleteById/${id}`,
    method: 'DELETE'
  })
}
/**
 * @param  编辑音频分类
*/
export function editSongCategory(data) {
  return request({
    url: `/qia-cloud-middle-stage/songCategory/update`,
    method: 'put',
    data
  })
}
/**
 * @param  根据id音频分类
*/
export function getSongCategory(id) {
  return request({
    url: `/qia-cloud-middle-stage/songCategory/queryById/${id}`,
    method: 'get'
  })
}
/**
 * @param  查询所有音频分类
*/
export function getAllSongCategory() {
  return request({
    url: `/qia-cloud-middle-stage/songCategory/list`,
    method: 'POST'
  })
}
/**
 * @param  新增视频分类
*/
export function addVideoCategory(data) {
  return request({
    url: `/qia-cloud-middle-stage/videoCategory/save`,
    method: 'put',
    data
  })
}
/**
 * @param  删除视频分类
*/
export function delVideoCategory(id) {
  return request({
    url: `/qia-cloud-middle-stage/videoCategory/deleteById/${id}`,
    method: 'DELETE'
  })
}
/**
 * @param  编辑视频分类
*/
export function editVideoCategory(data) {
  return request({
    url: `/qia-cloud-middle-stage/videoCategory/update`,
    method: 'put',
    data
  })
}
/**
 * @param  根据id视频分类
*/
export function getVideoCategory(id) {
  return request({
    url: `/qia-cloud-middle-stage/videoCategory/queryById/${id}`,
    method: 'get'
  })
}
/**
 * @param  查询所有视频分类
*/
export function getAllVideoCategory() {
  return request({
    url: `/qia-cloud-middle-stage/videoCategory/list`,
    method: 'POST'
  })
}
/**
 * @param  新增编辑
*/
export function addPool(data) {
  return request({
    url: `/qia-cloud-middle/pp-push-pool-config/saveOrUpdate`,
    method: 'put',
    data
  })
}
/**
 * @param  推送详情
*/
export function poolInfo(id) {
  return request({
    url: `/qia-cloud-middle/pp-push-pool-config/queryPoolById/${id}`,
    method: 'POST'
  })
}
/**
 * @param  删除池子
*/
export function delPool(id) {
  return request({
    url: `/qia-cloud-middle/pp-push-pool-config/delPool/${id}`,
    method: 'DELETE'
  })
}
/**
 * @param  出池子
*/
export function delPoolData(id) {
  return request({
    url: `/qia-cloud-middle/pp-push-pool/delPoolData/${id}`,
    method: 'DELETE'
  })
}
/**
 * @param  批量探索区
*/
export function delExploreData(data) {
  return request({
    url: `/qia-cloud-middle/pc-explore-pool/updateBatch`,
    method: 'put',
    data
  })
}
/**
 * @param  进探索区
*/
export function pushExploreData(data) {
  return request({
    url: `/qia-cloud-middle/pc-explore-pool/saveOrUpdateBatch`,
    method: 'PUT',
    data
  })
}
/**
 * @param  查探索区数据
*/
export function getExploreData(data) {
  return request({
    url: `/qia-cloud-middle/pc-explore-pool/queryPage`,
    method: 'POST',
    data
  })
}
/**
 * @param  查探索区数据泛读
*/
export function getExploreDataBook(data) {
  return request({
    url: `/qia-cloud-middle/pc-explore-pool/queryExplorePoolByBook`,
    method: 'POST',
    data
  })
}
/**
 * @param  查探索区数据视频
*/
export function getExploreVideoData(data) {
  return request({
    url: `/qia-cloud-middle/pc-explore-pool/queryExplorePoolByVideo`,
    method: 'POST',
    data
  })
}
/**
 * @param  出探索区规则
*/
export function delExploreDataRule(id) {
  return request({
    url: `/qia-cloud-middle/pc-explore-pool-config/delExplorePool/${id}`,
    method: 'DELETE'
  })
}
/**
 * @param  进探索区规则
*/
export function pushExploreDataRule(data) {
  return request({
    url: `/qia-cloud-middle/pc-explore-pool-config/saveOrUpdate`,
    method: 'PUT',
    data
  })
}
/**
 * @param  查探索区规则数据
*/
export function getExploreDataRule(data) {
  return request({
    url: `/qia-cloud-middle/pc-explore-pool-config/queryPage`,
    method: 'post',
    data
  })
}
/**
 * @param  查探索区规则数据id
*/
export function getExploreDataRuleById(id) {
  return request({
    url: `/qia-cloud-middle/pc-explore-pool-config/queryExplorePoolById/${id}`,
    method: 'get'
  })
}
/**
 * @param  批量修改探索区配置
*/
export function editRulesBatch(data) {
  return request({
    url: `/qia-cloud-middle/pc-explore-pool-config/updateBatch`,
    method: 'put',
    data
  })
}
export function queryExplorePoolByLeVideo(data) {
  return request({
    url: `/qia-cloud-middle/pc-explore-pool/queryExplorePoolByLeVideo`,
    method: 'POST',
    data
  })
}
export function queryPageOfTeachingArea(data) {
  return request({
    url: `/qia-cloud-middle/pc-explore-pool/queryPageOfTeachingArea`,
    method: 'POST',
    data
  })
}
export function queryPageOfExtensiveArea(data) {
  return request({
    url: `/qia-cloud-middle/pc-explore-pool/queryPageOfExtensiveArea`,
    method: 'POST',
    data
  })
}
export function getWordPool(data) {
  return request({
    url: `/qia-cloud-middle/wd-word-flow/queryPagePool`,
    method: 'POST',
    data
  })
}
export function getStudyVideoPool(data) {
  return request({
    url: `/qia-cloud-middle/le-video-flow/queryPagePool`,
    method: 'POST',
    data
  })
}
export function getPullBookPool(data) {
  return request({
    url: `/qia-cloud-middle/ir-book-word-flow/queryPagePool`,
    method: 'POST',
    data
  })
}
export function getLessonPool(data) {
  return request({
    url: `/qia-cloud-middle/ls-lesson-flow/queryPagePool`,
    method: 'POST',
    data
  })
}

// 题目
export function getThemeSubject(id) {
  return request({
    url: `/qia-cloud-middle/st-subject/querySubjectInfoByLessonId/${id}`,
    method: 'get'
  })
}
export function getSubjectById(id) {
  return request({
    url: `/qia-cloud-middle/st-subject/querySubjectInfoById/${id}`,
    method: 'get'
  })
}
export function pushSubjectFromAll(data) {
  return request({
    url: `/qia-cloud-middle/st-subject/induceSubject`,
    method: 'put',
    data
  })
}
export function getPaperSubject(PaperId) {
  return request({
    url: `/qia-cloud-middle/st-subject/querySubjectInfoByPaperId/${PaperId}`,
    method: 'get',
  })
}
export function getBookSubject(PaperId) {
  return request({
    url: `/qia-cloud-middle/ir-book-word-flow/querySubjectInfoByBookId/${PaperId}`,
    method: 'get',
  })
}
export function importSubjects(data) {
  return request({
    url: `/qia-cloud-middle/st-subject/importSubjectBatch`,
    method: 'put',
    data
  })
}
/**
 *@param {*} data
 * @returns 修改题目
 */
 export const editSubjectInfoBatch = (data) => {
  return request({
    method: 'put',
    url: `/qia-cloud-middle/st-subject/updateBatch`,
    data
  })
}
/**
 *@param {*} id
 * @returns 根据id查询题目
 */
 export const getSubjectInfo = (id) => {
  return request({
    method: 'get',
    url: `/qia-cloud-middle/st-subject/querySubjectInfoById/${id}`
  })
}
/**
 *@param {*} data
 * @returns 新增题目
 */
 export const addSubject = (data) => {
  return request({
    method: 'put',
    url: '/qia-cloud-middle/st-subject/saveOrUpdateSubject',
    data
  })
}

/**
 * 书籍内容字幕查询全部
*/
export function getBookContentAll(bookId) {
  return request({
    url: `/qia-cloud-middle/bk-book-content-sentence-flow/querySentenceAndWordAll/${bookId}`,
    method: 'get'
  })
}
/**
 * 书籍内容字幕查询全部
*/
export function getBookContentAllPublish(bookId) {
  return request({
    url: `/qia-cloud-middle/bk-book-content-sentence/querySentenceAndWordAll/${bookId}`,
    method: 'get'
  })
}

export function delSubject(id) {
  return request({
    url: `/qia-cloud-middle/st-subject/removeSubject/${id}`,
    method: 'DELETE'
  })
}

/**
 *
 * @param {*} data
 * @returns 修改精读
 */
 export function editBook(params) {
  return request({
    url: `/qia-cloud-middle/ir-book-word-flow/saveOrUpdateBook`,
    method: 'put',
    data: params
  })
}

export function getTestSubject(PaperId) {
  return request({
    url: `/qia-cloud-middle/st-subject/querySubjectInfoByPaperId/${PaperId}`,
    method: 'get'
  })
}